<template>
  <div class="goods-container">
    <div class="title">
      <div class="info">商品信息</div>
      <div class="price">单价</div>
      <div class="count">数量</div>
      <div class="total">小计</div>
      <div class="summary">实付</div>
    </div>
    <div class="content">
      <div class="info">
        <img src='https://yanxuan.nosdn.127.net/b9fd72b72a75137cdb0528498044a2d1.png?imageView&quality=95&thumbnail=100x100' />
        <div class="detail">
          <div class="name">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</div>
          <div class="sku">浅草黄 150*200cm</div>
        </div>
      </div>
      <div class="price">¥199.00</div>
      <div class="count">1</div>
      <div class="total">¥199.00</div>
      <div class="summary">¥199.00</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style lang="less" scoped>
@import "../../styles/variable.less";

.goods-container {
  .title {
    align-items: center;
    background-color: @bg-grey;
    color: @font-color-grey;
    display: flex;
    font-size: 14px;
    height: 42px;
    .info {
      width: 300px;
      padding: 0px 20px;
      text-align: left;
    }
    .price {
      width: 165px;
      text-align: center;
    }
    .count {
      width: 171px;
      text-align: center;
    }
    .total {
      width: 191px;
      text-align: center;
    }
    .summary {
      text-align: center;
      flex: 1;
    }
  }
  .content {
    color: @font-color;
    display: flex;
    font-size: 14px;
    .info {
      display: flex;
      width: 300px;
      padding: 20px 0px 20px 20px;
      text-align: left;
      img {
        background-color: #f4f4f4;
        width: 100px;
        height: 100px;
      }
      .detail {
        width: 180px;
        padding: 2px 0px 0px 10px;
        .name {
          font-size: 14px;
          width: 100%;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          line-height: 22px;
        }
        .sku {
          color: @font-color-grey;
          font-size: 12px;
          line-height: 22px;
        }
      }
    }
    .price {
      width: 165px;
      padding: 22px 0px;
      text-align: center;
    }
    .count {
      width: 171px;
      padding: 22px 0px;
      text-align: center;
    }
    .total {
      width: 191px;
      padding: 22px 0px;
      text-align: center;
    }
    .summary {
      flex: 1;
      text-align: center;
      padding: 22px 0px;
    }
  }
}
</style>
